package com.infra.micro.id.controller;

import com.infra.common.resp.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/api/id/health")
@Api(tags = {"健康服务"})
public class IdHealthController {
    @GetMapping("/heartBeat")
    @ApiOperation(value = "心跳检查", notes = "心跳检查", produces = "application/json")
    public Response<Date> heartBeat() {
        return Response.success(new Date(), "OK");
    }
}
